﻿using System;

namespace SmartCity.Shared
{
    /// <summary>
    /// 系统异常输出结果
    /// </summary>
    public class ErrorResponse : ActionResponse<ErrorResponse>
    {
        /// <summary>
        /// 系统异常
        /// </summary>
        /// <param name="msg"></param>
        public static ErrorResponse Error(string msg)
        {
            return Wrong(msg);
        }

        /// <summary>
        /// 系统异常
        /// </summary>
        /// <param name="ex"></param>
        public static ErrorResponse Error(Exception ex)
        {
            return Wrong(ex);
        }
    }
}